import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter)

const main = () => import('../src/components/product')
const compute = ()=>import('../src/components/compute')
const routes = [
  {
    path: '',
    redirect: '/main'
  },
  {
    path: '/main',
    component: main
  },
  {
    path: '/compute',
    component:compute
  }
]
const router = new VueRouter({
  routes,
  mode: 'hash'
})

export default router
